export const APPLY_METHOD = {
  SELF_SIGN: 'self_signed',
  HAND_ANALYSIS: 'dns_manual',
  DNS_ACCOUNT: 'dns_account'
}
export const applyMethodOptions: LabelValue[] = [
  { label: '自签证书', value: APPLY_METHOD.SELF_SIGN },
  { label: '手动解析', value: APPLY_METHOD.HAND_ANALYSIS },
  { label: 'DNS账号', value: APPLY_METHOD.DNS_ACCOUNT }
]
export const CERT_STATUS = {
  WAIT_APPLY: 'ready',
  NORMAL: 'init',
  FAIL: 'error',
  APPLYING: 'applying'
}
export const certStatusOptions: LabelValue[] = [
  { label: '等待申请', value: CERT_STATUS.NORMAL },
  { label: '正常', value: CERT_STATUS.WAIT_APPLY },
  { label: '失败', value: CERT_STATUS.FAIL },
  { label: '申请中', value: CERT_STATUS.APPLYING }
]
export const CERT_COLOR_MAP = {
  [CERT_STATUS.WAIT_APPLY]: '#165DFF',
  [CERT_STATUS.NORMAL]: '#00B42A',
  [CERT_STATUS.FAIL]: '#F53F3F',
  [CERT_STATUS.APPLYING]: '#165DFF'
}
export const ALGORITHM_OPTS = [
  { label: 'EC 256', value: 'P256' },
  { label: 'EC 384', value: 'P384' },
  { label: 'RSA 2048', value: '2048' },
  { label: 'RSA 3072', value: '3072' },
  { label: 'RSA 4096', value: '4096' }
]
export const ACCOUNT_TYPE_OPTS = [
  { label: "Let's Encrypt", value: 'letsencrypt' },
  { label: 'ZeroSSL', value: 'zerossl' }
]
